package com.sls.mall.authserver.feign;

import com.sls.mall.authserver.vo.UserLoginVO;
import com.sls.mall.authserver.vo.UserRegistVO;
import com.sls.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lixue
 * @Title: MemberFeignService
 * @ProjectName sls_mall2021
 * @Description: TODO
 * @date 2021/5/622:48
 */

@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    public R regist(@RequestBody UserRegistVO userRegistVo);

    @RequestMapping("/member/member/login")
    public R login(@RequestBody UserLoginVO userLoginVO);
}
